package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.project.bean.ChannelBean;
import com.project.bean.PostBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.List;

@Mapper
public interface IChannelMapper extends BaseMapper<ChannelBean> {
    /**
     * 查询所有频道，同时统计每个版块的主题数量
     * @return
     */
    List<ChannelBean> findAll();
}
